﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Home.Domain.Entities.Secondary;
using Home.Domain.Entities.Secondary.Mapping;

namespace Home.Domain.Entities.Example
{
    /// <summary>
    /// 职业
    /// </summary>
    public class Career : TPCCategory
    {
        /// <summary>
        /// 用户列表
        /// </summary>
        public virtual List<UserInfo> UserInfos { get; set; }
    }
    public class CareerMap : TPCCategoryMap<Career>
    {
        public CareerMap()
        {
            //属性
            Map(n => n.MapInheritedProperties());
            ToTable("Career");
        }
    }
}
